#include <iostream>
#include <string>

using namespace std;

class Solution 
{
public:
    bool halvesAreAlike(string s) 
    {
        int h = 0, t = s.size() / 2;
        int j = 0;
        
        for (int i = 0; i < s.size(); i++)
        {
            if (s[i] < 97)
            {
                s[i] += 32;
            }

            if (i < t)
            {
                if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u')
                {
                    j++;
                }
            }
            else
            {
                if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u')
                {
                    j--;
                }
            }
        }

        return !j;
    }
};

int main()
{
    string s{ "textbook" };

    Solution xz;

    bool b = xz.halvesAreAlike(s);

    if (b)
    {
        cout << "true" << endl;
    }
    else
        cout << "false" << endl;

	return 0;
}